package com.db.stockexchange.common.messages.server;

import com.db.stockexchange.common.OrderSide;
import com.db.stockexchange.common.OrderStatus;

public class OkReportMessage extends ExecutionReportMessage {
	private int orderQuantity;
	private int cumQuantity;
	private int leavesQuantity;
	private float price;

	protected OkReportMessage(String senderCompID, int orderID,
			String symbol, OrderSide side, OrderStatus orderStatus,
			int orderQuantity, int cumQuantity, int leavesQuantity, float price) {
		super(senderCompID, orderID, symbol, side, orderStatus);
		this.orderQuantity = orderQuantity;
		this.cumQuantity = cumQuantity;
		this.leavesQuantity = leavesQuantity;
		this.price = price;
	}

	public int getOrderQuantity() {
		return orderQuantity;
	}

	public int getCumQuantity() {
		return cumQuantity;
	}

	public int getLeavesQuantity() {
		return leavesQuantity;
	}
	
	public float getPrice() {
		return price;
	}
	
	@Override
	public String toString() {
		return new StringBuilder().append(super.toString()).append(", ")
				.append("Qty=").append(orderQuantity).append(", ")
				.append("cumQty=").append(cumQuantity).append(", ")
				.append("leavesQty=").append(leavesQuantity).toString();
	}
}
